﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Utility.Extensions.Http
{
    /// <summary>
    /// Http Content Type 常量值
    /// </summary>
    public static class HttpContentType
    {
        /// <summary>
        /// 资源类型：普通文本
        /// </summary>
        public const string TextPlain = "text/plain";

        /// <summary>
        /// 资源类型：JSON字符串
        /// </summary>
        public const string ApplicationJson = "application/json";

        /// <summary>
        /// 资源类型：未知类型(数据流)
        /// </summary>
        public const string ApplicationOctetStream = "application/octet-stream";

        /// <summary>
        /// 资源类型：表单数据(键值对)
        /// </summary>
        public const string WwwFormUrlencoded = "application/x-www-form-urlencoded";

        /// <summary>
        /// 资源类型：表单数据(键值对)。编码方式为 gb2312
        /// </summary>
        public const string WwwFormUrlencodedGb2312 = "application/x-www-form-urlencoded;charset=gb2312";

        /// <summary>
        /// 资源类型：表单数据(键值对)。编码方式为 utf-8
        /// </summary>
        public const string WwwFormUrlencodedUtf8 = "application/x-www-form-urlencoded;charset=utf-8";

        /// <summary>
        /// 资源类型：多分部数据
        /// </summary>
        public const string WwwFormUrlencodedUtf = "multipart/form-data";
    }
}
